package day_02;

/**
 * @ClassName home_work
 * @Description TODO
 * @Author hp
 * @Date 2021/6/3 18:05
 * @Version 1.0
 **/
public class home_work {
    public static void main(String[] args) {
       /* byte b1 = 10 ;
        byte b2 = 20 ;
        byte b3 =(byte)( b1 + b2);
        System.out.println(b3);
        short s1 = 1000;
        short s2 = 2000;
        int s3 = s1 + s2;
        System.out.println(s3);
        char ch1 = 'a';
        int i1 = 30;
        int ch3 = ch1 - i1;
        System.out.println(ch3);*/

/*       int i1 = 10 ;
       long l1 = 100;
       long add;
       add = i1 + l1;

        float f2 = 10.5f ;
        long l2 = 100;
        float add2;
        add2 = f2 + l2;

        int  i3 = 10 ;
        double d3 = 100.5;
        double add3;
        add3 = i3 + d3;

        float f4 = 10.5f;
        double d4 = 11.5;
        double add4;
        add4 = f4 + d4;

        System.out.println(add);
        System.out.println(add2);
        System.out.println(add3);
        System.out.println(add4);*/


        /*char ch = 'J';
        System.out.println((char)(ch+32));
        char ch2 = 'a';
        System.out.println((char)(ch2+=(-32)));
        double d3 = 5.5;
        int i3 = 6;
        double sum3 = d3 + i3;
        System.out.println(sum3);
        System.out.println((int)(sum3));
        double d4 = 5.5;
        int i4=2;
        int mul4 = (int)(d4 * i4);*/

      /* int a1 = 10, a2 = 11;
        System.out.println("a1是偶数?"+(a1%2==0?true:false));
        System.out.println("a2是偶数?"+(a2%2==0?true:false));
       int a3 = 12, a4 = 13;
        System.out.println("a3是偶数?"+(a3%2==0?true:false));
        System.out.println("a4是偶数?"+(a4%2==0?true:false));*/

        /*int a=20,b=20;
        boolean bo;
        bo = (++a % 3 ==0) && (a++ % 7==0);
        System.out.println(a);
        System.out.println(bo);

        boolean bo2;
        bo2 = (b++ % 3 ==0) && (++b % 7==0);
        System.out.println(b);
        System.out.println(bo2);*/

/*        int hours = 89;
        int day ,hour;
        System.out.println(hours+"是"+hours/24+"天"+hours%24+"小时");*/

        /*int x=10,y=15,z=20;
        int max;
        max = x>y?x:y;
        System.out.println(max);
        max = max>z?max:z;
        System.out.println(max);*/

/*        int year = 2021;
        boolean b1 = (year%4==0 && year%100!=0) || year % 400 == 0;
        System.out.println(b1);*/

/*        double hua = 80.0;
        double she = (hua-32)/1.8 ;
        System.out.println(she+"℃");*/

/*        int week = 4;
        week += 100;
        week = week % 7;
        System.out.println(week == 0?"周日":"周"+week);*/

   /*    int i = 2;
       i *= i++;
        System.out.println(i);*/




    }

}
